import request from '@/utils/request'

export function getRodListAPI(obj){
    return request({
        url:'/pole/info/list',
        method:'GET',
        params:obj
    })
}

export function getAreaListAPI(){
    return request({
        url:'/parking/area/dropList',
        method:'GET',
    })
}

export function addRodAPI(obj){
    return request({
        url:'/pole/info',
        method:'POST',
        data:obj
    })
}

export function editPoleAPI(obj){
    return request({
        url: '/pole/info',
        method:'PUT',
        data:obj
    })
}
export function dltPoleAPI(id){
    return request({
        url:'/pole/info/'+id,
        method:'DELETE'
    })
}